﻿using System;

namespace var推断类型
{
    class Program
    {
        static void Main(string[] args)
        {
            var a = "张三";
            var b = 1;
            var c = 3.14;
            var d = '男';
            var e = 123m;
            Console.WriteLine(a.GetType());
            Console.WriteLine(b.GetType());
            Console.WriteLine(c.GetType());
            Console.WriteLine(d.GetType());
            Console.WriteLine(e.GetType());
        }
    }
}
